
import 'package:json_annotation/json_annotation.dart';
import 'package:reabampos/src/reabam/operation/bean/base/rb_response.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'Response_barcode_rule.g.dart';

@JsonSerializable(explicitToJson: true)
class ResponseBarcodeRule extends RBBaseResponse{

  ResponseBarcodeRuleDataBean? data;

  ResponseBarcodeRule(this.data);


  factory ResponseBarcodeRule.fromJson(Map<String, dynamic> json) => _$ResponseBarcodeRuleFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$ResponseBarcodeRuleToJson(this);

}

@JsonSerializable(explicitToJson: true)
class ResponseBarcodeRuleDataBean{

  List<BarcodeSearchRulesBean>? barcodeSearchRules;


  ResponseBarcodeRuleDataBean(
   {this.barcodeSearchRules});

   //添加固定格式
  factory ResponseBarcodeRuleDataBean.fromJson(Map<String, dynamic> json) => _$ResponseBarcodeRuleDataBeanFromJson(json);
  Map<String, dynamic> toJson() => _$ResponseBarcodeRuleDataBeanToJson(this);

}

@JsonSerializable(explicitToJson: true)
class BarcodeSearchRulesBean{

   dynamic amountDecimalCount;
   int amountEndDigit;
   int amountStartDigit;
   int customizeEndDigit;
   int customizeStartDigit;

   String? regularQuantity;
   String? regularSku;
   String? regularUnique;
   dynamic reverseDecimalCount;
   int ruleType;
   int skuEndDigit;
   String? skuPrefix;
   int skuStartDigit;
   int status;
   dynamic weightDecimalCount;


   BarcodeSearchRulesBean(
   {
     this.amountDecimalCount,
     this.amountEndDigit=0,
     this.amountStartDigit=0,
     this.customizeEndDigit=0,
     this.customizeStartDigit=0,
     this.regularQuantity,
     this.regularSku,
     this.regularUnique,
     this.reverseDecimalCount,
     this.ruleType=0,
     this.skuEndDigit=0,
     this.skuPrefix,
     this.skuStartDigit=0,
     this.status=0,
     this.weightDecimalCount,
}); //添加固定格式
  factory BarcodeSearchRulesBean.fromJson(Map<String, dynamic> json) => _$BarcodeSearchRulesBeanFromJson(json);
  Map<String, dynamic> toJson() => _$BarcodeSearchRulesBeanToJson(this);

}